//
//  UIViewController+Navigation.h
//  YOHO Pay
//
//  Created by chuanshuangzhang  on 8/29/15.
//  Copyright (c) 2015 chuanshuangzhang . All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (Navigation)
/**
 *  set title for UIViewController and back button
 *
 *  @param title  title Name
 *  @param isBack a Bool value ,YES indicate add back button
 */
- (void)setTitle:(NSString *)title back:(BOOL)isBack;

/**
 *  set right buuton for UIViewController
 *
 *  @param tittle    title name for right button
 *  @param imageName image Name for tight button
 */
- (void)setRightItem:(NSString *)tittle imageName:(NSString *)imageName;
/**
 *  设置控制器左边按钮
 *
 *  @param title     名字
 *  @param imageName 图片名
 */
- (void)setLeftItem:(NSString *)title imageName:(NSString *)imageName;
/**
 *  返回按钮点击
 *
 *  @param dender
 */
- (void)leftBarButtonItemAction:(id)sender;

/**
 *  右边按钮点击
 *
 *  @param sender
 */
- (void)rightBarButtonItemAction:(id)sender;

@end
